<%@ page import="java.sql.*,database.*"%>
<%
try{
            if (new DBCon(out).updateProfessor(
                    request.getParameter("fn"),
                    request.getParameter("mn"),
                    request.getParameter("ln"),
                    request.getParameter("dpt"),
                    request.getParameter("deg"),
                    request.getParameter("email"),
                    request.getParameter("wp"),
                    request.getParameter("mp"),
                    request.getParameter("hp"),
                    (String) session.getAttribute("un"),
                    request.getParameter("pwd"))==1) {

                response.sendRedirect("../Proff/index.jsp");
            }
}
catch(Exception e)
{
    response.sendRedirect("../connectionFailed.jsp?"+e);
}

	    %>
